#-------------------------------------------------
#
# Project created by QtCreator 2019-11-30T14:18:42
#
#-------------------------------------------------

QT       += core gui widgets multimedia network

TARGET = TextVoiceReader
TEMPLATE = app
LIBS += -lshell32 -lole32 -ladvapi32 -luser32 -ldwmapi #-lmsvcrt
CONFIG(debug, debug|release){
LIBS   += -L$$PWD/3rd/ffmpeg_3.4.2/lib/x86 -llibavcodecd -llibavutild -llibswresampled -llibavformatd
} else {
LIBS   += -L$$PWD/3rd/ffmpeg_3.4.2/lib/x86 -llibavcodec -llibavutil -llibavformat -llibswresample
}

INCLUDEPATH += 3rd/SoundTouch 3rd/Lame 3rd/Lame/mpglib 3rd/QHttpServer 3rd/ffmpeg_3.4.2/include
DEFINES += SOUNDTOUCH_INTEGER_SAMPLES HAVE_MPGLIB HAVE_CONFIG_H
RC_FILE = resources/res.rc
TRANSLATIONS = resources/cn.ts

QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS -= -O2
QMAKE_CFLAGS += -O1
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE += -O1


SOURCES += \
        3rd/Lame/VbrTag.c \
        3rd/Lame/bitstream.c \
        3rd/Lame/encoder.c \
        3rd/Lame/fft.c \
        3rd/Lame/gain_analysis.c \
        3rd/Lame/id3tag.c \
        3rd/Lame/lame.c \
        3rd/Lame/mpglib/common.c \
        3rd/Lame/mpglib/dct64_i386.c \
        3rd/Lame/mpglib/decode_i386.c \
        3rd/Lame/mpglib/interface.c \
        3rd/Lame/mpglib/layer1.c \
        3rd/Lame/mpglib/layer2.c \
        3rd/Lame/mpglib/layer3.c \
        3rd/Lame/mpglib/tabinit.c \
        3rd/Lame/mpglib_interface.c \
        3rd/Lame/newmdct.c \
        3rd/Lame/presets.c \
        3rd/Lame/psymodel.c \
        3rd/Lame/quantize.c \
        3rd/Lame/quantize_pvt.c \
        3rd/Lame/reservoir.c \
        3rd/Lame/set_get.c \
        3rd/Lame/tables.c \
        3rd/Lame/takehiro.c \
        3rd/Lame/util.c \
        3rd/Lame/vbrquantize.c \
        3rd/Lame/version.c \
        3rd/QHttpServer/http_parser.c \
        3rd/QHttpServer/qhttpconnection.cpp \
        3rd/QHttpServer/qhttprequest.cpp \
        3rd/QHttpServer/qhttpresponse.cpp \
        3rd/QHttpServer/qhttpserver.cpp \
        3rd/SoundTouch/AAFilter.cpp \
        3rd/SoundTouch/BPMDetect.cpp \
        3rd/SoundTouch/FIFOSampleBuffer.cpp \
        3rd/SoundTouch/FIRFilter.cpp \
        3rd/SoundTouch/InterpolateCubic.cpp \
        3rd/SoundTouch/InterpolateLinear.cpp \
        3rd/SoundTouch/InterpolateShannon.cpp \
        3rd/SoundTouch/PeakFinder.cpp \
        3rd/SoundTouch/RateTransposer.cpp \
        3rd/SoundTouch/SoundTouch.cpp \
        3rd/SoundTouch/TDStretch.cpp \
        3rd/SoundTouch/cpu_detect_x86.cpp \
        3rd/SoundTouch/mmx_optimized.cpp \
        3rd/SoundTouch/sse_optimized.cpp \
        source/LanAudioServer.cpp \
        source/main.cpp \
        source/AudioFile.cpp \
        source/FindTextDialog.cpp \
        source/GenerateAudioFile.cpp \
        source/VoicePlayer.cpp \
        source/TextVoiceReaderUI.cpp \
        source/TextSpeak.cpp

HEADERS += \
        3rd/QHttpServer/http_parser.h \
        3rd/QHttpServer/qhttpconnection.h \
        3rd/QHttpServer/qhttprequest.h \
        3rd/QHttpServer/qhttpresponse.h \
        3rd/QHttpServer/qhttpserver.h \
        3rd/QHttpServer/qhttpserverfwd.h \
        source/AudioFile.h \
        source/FindTextDialog.h \
        source/GenerateAudioFile.h \
        3rd/Lame/VbrTag.h \
        3rd/Lame/bitstream.h \
        3rd/Lame/encoder.h \
        3rd/Lame/fft.h \
        3rd/Lame/gain_analysis.h \
        3rd/Lame/id3tag.h \
        3rd/Lame/lame.h \
        3rd/Lame/mpglib/common.h \
        3rd/Lame/mpglib/dct64_i386.h \
        3rd/Lame/mpglib/decode_i386.h \
        3rd/Lame/mpglib/interface.h \
        3rd/Lame/mpglib/layer1.h \
        3rd/Lame/mpglib/layer2.h \
        3rd/Lame/mpglib/layer3.h \
        3rd/Lame/mpglib/tabinit.h \
        3rd/Lame/newmdct.h \
        3rd/Lame/psymodel.h \
        3rd/Lame/quantize.h \
        3rd/Lame/quantize_pvt.h \
        3rd/Lame/reservoir.h \
        3rd/Lame/set_get.h \
        3rd/Lame/tables.h \
        3rd/Lame/util.h \
        3rd/Lame/vbrquantize.h \
        3rd/Lame/version.h \
        3rd/SoundTouch/AAFilter.h \
        3rd/SoundTouch/BPMDetect.h \
        3rd/SoundTouch/FIFOSampleBuffer.h \
        3rd/SoundTouch/FIFOSamplePipe.h \
        3rd/SoundTouch/FIRFilter.h \
        3rd/SoundTouch/InterpolateCubic.h \
        3rd/SoundTouch/InterpolateLinear.h \
        3rd/SoundTouch/InterpolateShannon.h \
        3rd/SoundTouch/PeakFinder.h \
        3rd/SoundTouch/RateTransposer.h \
        3rd/SoundTouch/STTypes.h \
        3rd/SoundTouch/SoundTouch.h \
        3rd/SoundTouch/TDStretch.h \
        3rd/SoundTouch/cpu_detect.h \
        source/LanAudioServer.h \
        source/VoicePlayer.h \
        source/TextVoiceReaderUI.h \
        source/TextSpeak.h

FORMS += \
        source/FindTextDialog1.ui \
        source/FindTextDialog2.ui \
        source/TextVoiceReaderUI1.ui \
        source/TextVoiceReaderUI2.ui

RESOURCES += \
    resources/resources.qrc
